<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><pre><span class="lineno" id="1">     1  </span><span class="comment doc">/**
<span class="lineno" id="2">     2  </span> * com.sekati.log.ConsoleDocument
<span class="lineno" id="3">     3  </span> * @version 1.0.7
<span class="lineno" id="4">     4  </span> * @author jason m horwitz | sekati.com
<span class="lineno" id="5">     5  </span> * Copyright (C) 2007  jason m horwitz, Sekat LLC. All Rights Reserved.
<span class="lineno" id="6">     6  </span> * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
<span class="lineno" id="7">     7  </span> */</span>
<span class="lineno" id="8">     8  </span>
<span class="lineno" id="9">     9  </span><span class="key">import</span> com.sekati.display.BaseClip;
<span class="lineno" id="10">    10  </span><span class="key">import</span> com.sekati.log.Console;
<span class="lineno" id="11">    11  </span>
<span class="lineno" id="12">    12  </span><span class="comment doc">/**
<span class="lineno" id="13">    13  </span> * ConsoleDocument controller simulates an AS3 DocumentClass
<span class="lineno" id="14">    14  </span> * {@code Usage on first _root frame:
<span class="lineno" id="15">    15  </span> * ConsoleDocument.main(this);
<span class="lineno" id="16">    16  </span> * }
<span class="lineno" id="17">    17  </span> */</span>
<span class="lineno" id="18">    18  </span><span class="key">class</span> com.sekati.log.ConsoleDocument <span class="key">extends</span> BaseClip {
<span class="lineno" id="19">    19  </span>
<span class="lineno" id="20">    20  </span>	<span class="comment doc">/**
<span class="lineno" id="21">    21  </span>	 * Constructor
<span class="lineno" id="22">    22  </span>	 */</span>
<span class="lineno" id="23">    23  </span>	<span class="key">private</span> <span class="key">function</span> ConsoleDocument() {
<span class="lineno" id="24">    24  </span>		<span class="key">super</span>( );
<span class="lineno" id="25">    25  </span>		init( );
<span class="lineno" id="26">    26  </span>	}
<span class="lineno" id="27">    27  </span>
<span class="lineno" id="28">    28  </span>	<span class="comment doc">/**
<span class="lineno" id="29">    29  </span>	 * Link the ConsoleDocument class to the _root timeline via constructor simulating an AS3 document class.
<span class="lineno" id="30">    30  </span>	 * @param target (MovieClip)
<span class="lineno" id="31">    31  </span>	 * @return Void
<span class="lineno" id="32">    32  </span>	 */</span>
<span class="lineno" id="33">    33  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> main(target:MovieClip):Void {
<span class="lineno" id="34">    34  </span>		target.__proto__ = ConsoleDocument.prototype;
<span class="lineno" id="35">    35  </span>		Function( ConsoleDocument ).apply( target, <span class="key">null</span> );
<span class="lineno" id="36">    36  </span>	}
<span class="lineno" id="37">    37  </span>
<span class="lineno" id="38">    38  </span>	<span class="comment doc">/**
<span class="lineno" id="39">    39  </span>	 * General movie setup and class compositions.
<span class="lineno" id="40">    40  </span>	 * @return Void
<span class="lineno" id="41">    41  </span>	 */</span>
<span class="lineno" id="42">    42  </span>	<span class="key">private</span> <span class="key">function</span> init():Void {
<span class="lineno" id="43">    43  </span>		setMovieProps( );
<span class="lineno" id="44">    44  </span>		buildCompositions( );
<span class="lineno" id="45">    45  </span>	}
<span class="lineno" id="46">    46  </span>
<span class="lineno" id="47">    47  </span>	<span class="comment doc">/**
<span class="lineno" id="48">    48  </span>	 * general movie setup
<span class="lineno" id="49">    49  </span>	 * @return Void
<span class="lineno" id="50">    50  </span>	 */</span>
<span class="lineno" id="51">    51  </span>	<span class="key">private</span> <span class="key">function</span> setMovieProps():Void {
<span class="lineno" id="52">    52  </span>		System.security.allowInsecureDomain( <span class="str_const">"*"</span> );
<span class="lineno" id="53">    53  </span>		System.security.allowDomain( <span class="str_const">"*"</span> );
<span class="lineno" id="54">    54  </span>		fscommand( <span class="str_const">"swLiveConnect"</span>, <span class="str_const">"true"</span> );
<span class="lineno" id="55">    55  </span>		fscommand( <span class="str_const">"allowscale"</span>, <span class="str_const">"false"</span> );
<span class="lineno" id="56">    56  </span>		fscommand( <span class="str_const">"showmenu"</span>, <span class="str_const">"false"</span> );
<span class="lineno" id="57">    57  </span>		fscommand( <span class="str_const">"fullscreen"</span>, <span class="str_const">"false"</span> );
<span class="lineno" id="58">    58  </span>		Stage.align = <span class="str_const">"TL"</span>;
<span class="lineno" id="59">    59  </span>		Stage.scaleMode = <span class="str_const">"noScale"</span>;
<span class="lineno" id="60">    60  </span>		_quality = <span class="str_const">"LOW"</span>;
<span class="lineno" id="61">    61  </span>		_focusrect = <span class="key">false</span>;
<span class="lineno" id="62">    62  </span>	}
<span class="lineno" id="63">    63  </span>
<span class="lineno" id="64">    64  </span>	<span class="comment doc">/**
<span class="lineno" id="65">    65  </span>	 * centralize class compositions for core functionalities (Stage, ContextMenu, misc Managers)
<span class="lineno" id="66">    66  </span>	 * @return Void
<span class="lineno" id="67">    67  </span>	 */</span>
<span class="lineno" id="68">    68  </span>	<span class="key">private</span> <span class="key">function</span> buildCompositions():Void {
<span class="lineno" id="69">    69  </span>		Console.getInstance( );
<span class="lineno" id="70">    70  </span>	}
<span class="lineno" id="71">    71  </span>}</pre><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.log" class="button">Package</a></li><li><a href="ConsoleDocument.html" title="Detail of com.sekati.log.ConsoleDocument API" class="button">Class</a></li><li><span class="button nav_current">Source</span></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>